Skip to content

Require warnings to silence byte compilation warnings#712

Merged
matsl merged 2 commits intomasterfrom
fix-warnings-for-unused-lexical-variable
Apr 26, 2025
Merged

Require warnings to silence byte compilation warnings#712
matsl merged 2 commits intomasterfrom
fix-warnings-for-unused-lexical-variable

Conversation

@matsl
Copy link
Copy Markdown
Collaborator

@matsl matsl commented Apr 24, 2025

What

Require warnings to get the definition of variables in the package.

Why

The variables warning-minimum-level and warning-suppress-log-types
are not autoloaded. So not seen when byte compiling. By requiring
'warnings the variables are defined.

We could defvar them but requiring warnings cause no risk of circular
dependencies so is the preferred way to resolve this, IMHO.

@matsl matsl requested a review from rswgnu April 24, 2025 14:04
@matsl matsl force-pushed the fix-warnings-for-unused-lexical-variable branch from dd89d9f to a43a82c Compare April 25, 2025 20:25
@matsl matsl merged commit e1504a2 into master Apr 26, 2025
4 checks passed
@matsl matsl deleted the fix-warnings-for-unused-lexical-variable branch April 26, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants